<template>
  <div>
    <el-button type="primary">点击我</el-button>
    <button @click="login">登录</button>
    <van-button type="success">成功按钮</van-button>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router"

let router = useRouter()
let login = () => {
    router.push("/index")
}
</script>

